<template>
    <div>
            <h1>订单展示</h1>
            <table>
                <tr>
                    <td>名称</td>
                    <td>价格</td>
                </tr>
                <tr v-for="i in dingdan_list">
                    <td>{{i.name}}</td>
                    <td>{{i.price / 100}}元</td>
                </tr>
            </table>
    </div>  
</template>

<script>
export default {
   data () {
      return {
          dingdan_list:'',
          uid:localStorage.getItem('test_uid')
      };
   },

    methods: {
            get_shop:function(){
                console.log(this.uid);
                    this.axios.get(this.localhost+'get_shop/',{params:{
                        uid:this.uid
                    }})
                    .then(res=>{
                        console.log(res);
                        this.dingdan_list = res.data;
                    })
            }
       },

    computed: {

       },

    created () {

       },

    mounted() {
            this.get_shop();
       },

    components: {

       }
}
</script>
<style lang='css' scoped>

</style>